package com.itts.converter;

import java.util.List;
import java.util.stream.Collectors;

public interface Converter<S,T> {

    T convert(S source);

    default List<T> convert(List<S> sourceList){
        return sourceList.stream().map((m) -> {
            return this.convert(m);
        }).collect(Collectors.toList());
    }
}
